﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Main.aspx.cs" Inherits="RegisterWeb.Manager.Main" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../js/jquery-easyui-1.2.6/themes/gray/easyui.css" rel="stylesheet"
        type="text/css" />
    <link href="../css/default.css" rel="stylesheet" type="text/css" />

    <script src="../js/jquery-easyui-1.2.6/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="../js/jquery-easyui-1.2.6/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../js/wikmenu.js" type="text/javascript"></script>

    <style type="text/css">
    .north
    {
        height:60px;
        background:#B3DFDA;
      }
     .west
     {
         width:150px;
         padding:10px;
      }
      .south
       {
              height:50px;
              background:#A9FACD;
              padding:10px;
        }
       
    </style>
    <script type="text/javascript">

//        var _menus = { "menus": [{ "menuid": "MT007", "menuname": "医生个人中心", "icon": "icon-sys", "menus": [{ "menuid": "MI015", "menuname": "医生排班确认", "icon": "icon-nav", "url": "#" }, { "menuid": "MI016", "menuname": "患者评价查询", "icon": "icon-nav", "url": "#"}] }, { "menuid": "MT001", "menuname": "医院信息管理", "icon": "icon-sys", "menus": [{ "menuid": "MI001", "menuname": "医院信息管理", "icon": "icon-nav", "url": "#" }, { "menuid": "MI002", "menuname": "医生信息管理", "icon": "icon-nav", "url": "#" }, { "menuid": "MI003", "menuname": "医院科室管理", "icon": "icon-nav", "url": "#"}] }, { "menuid": "MT002", "menuname": "患者用户管理", "icon": "icon-sys", "menus": [{ "menuid": "MI004", "menuname": "用户信息管理", "icon": "icon-nav", "url": "#" }, { "menuid": "MI005", "menuname": "用户统计中心", "icon": "icon-nav", "url": "#" }, { "menuid": "MI006", "menuname": "患者评价", "icon": "icon-nav", "url": "#"}] }, { "menuid": "MT003", "menuname": "门诊挂号管理", "icon": "icon-sys", "menus": [{ "menuid": "MI007", "menuname": "医生排班管理", "icon": "icon-nav", "url": "#" }, { "menuid": "MI008", "menuname": "放/停号管理", "icon": "icon-nav", "url": "#"}] }, { "menuid": "MT004", "menuname": "统计分析中心", "icon": "icon-sys", "menus": [{ "menuid": "MI009", "menuname": "挂号历史统计分析", "icon": "icon-nav", "url": "#" }, { "menuid": "MI010", "menuname": "挂号履行率分析", "icon": "icon-nav", "url": "#"}] }, { "menuid": "MT005", "menuname": "公告内容管理", "icon": "icon-sys", "menus": [{ "menuid": "MI011", "menuname": "应用综合统计", "icon": "icon-nav", "url": "#" }, { "menuid": "MI012", "menuname": "反馈建议查询", "icon": "icon-nav", "url": "#" }, { "menuid": "MI013", "menuname": "版本更新与发布", "icon": "icon-nav", "url": "#"}] }, { "menuid": "MT006", "menuname": "移动客户端管理", "icon": "icon-sys", "menus": [{ "menuid": "MI014", "menuname": "个人资料维护", "icon": "icon-nav", "url": "#"}] }, { "menuid": "MT008", "menuname": "系统用户管理", "icon": "icon-sys", "menus": [{ "menuid": "MI020", "menuname": "系统用户管理", "icon": "icon-nav", "url": "#" }, { "menuid": "MI021", "menuname": "系统角色管理", "icon": "icon-nav", "url": "#" }, { "menuid": "MI022", "menuname": "角色权限管理", "icon": "icon-nav", "url": "#" }, { "menuid": "MI023", "menuname": "用户角色管理", "icon": "icon-nav", "url": "#"}] }, { "menuid": "MT009", "menuname": "系统管理", "icon": "icon-sys", "menus": [{ "menuid": "MI017", "menuname": "数据备份", "icon": "icon-nav", "url": "#" }, { "menuid": "MI018", "menuname": "日志管理", "icon": "icon-nav", "url": "#" }, { "menuid": "MI019", "menuname": "参数设置", "icon": "icon-nav", "url": "#"}]}] };

     var _menus;



        //初始化左侧
        function InitLeftMenu1() {

            $(".easyui-accordion1").empty();
            var menulist = "";

            $.each(_menus.menus, function (i, n) {
                menulist += '<div title="' + n.menuname + '"  icon="' + n.icon + '" style="overflow:auto;">';
                menulist += '<ul>';
                $.each(n.menus, function (j, o) {
                    menulist += '<li><div><a ref="' + o.menuid + '" href="#" rel="' + o.url + '" ><span class="icon ' + o.icon + '" >&nbsp;</span><span class="nav">' + o.menuname + '</span></a></div></li> ';
                })
                menulist += '</ul></div>';
            })

            $(".easyui-accordion1").append(menulist);

            $('.easyui-accordion1 li a').click(function () {
                var tabTitle = $(this).children('.nav').text();

                var url = $(this).attr("rel");
                var menuid = $(this).attr("ref");
                var icon = getIcon(menuid, icon);

                addTab(tabTitle, url, icon);
                $('.easyui-accordion1 li div').removeClass("selected");
                $(this).parent().addClass("selected");
            }).hover(function () {
                $(this).parent().addClass("hover");
            }, function () {
                $(this).parent().removeClass("hover");
            });

            //导航菜单绑定初始化
            $(".easyui-accordion1").accordion();
        }

        $(function () {

            $.post("MenuService.ashx", null, function (data, status) {

                if (status == "success") {
                    _menus = $.parseJSON(data);
                    InitLeftMenu1();
                }
            });
        });

    </script>


</head>
<body class=" easyui-layout">
     <div region="north" split="true" border="false" style="overflow: hidden; height: 50px;
        background: url(images/layout-browser-hd-bg.gif) #7f99be repeat-x center 50%;
        line-height: 20px;color: #fff; font-family: Verdana, 微软雅黑,黑体">
        <span style="float:right; padding-right:20px;" class="head">欢迎 admin <a href="#" id="editpass">修改密码</a> <a href="#" id="loginOut">安全退出</a></span>
        <span style="padding-left:10px; font-size: 16px; "><img src="/images/blocks.gif" width="20" height="20" align="absmiddle" /> 管理信息系统</span>
    </div>
   
       <div region="west" split="true" title="导航菜单" style="width:180px;" id="west">
<div class="easyui-accordion1" fit="true" border="false">
		<!--  导航内容 -->
     
			</div>

    </div>


    <div region="south" border="false" style="height:30px; background:#D2E0F2; padding:10px;">
    
     <div class="footer">By 合肥学院Iteam&nbsp;&nbsp;&nbsp;</div>
    
    </div>
    <div region="center" title="" style=" background:#eee; overflow-y:hidden">
   
   <div id="tabs" class=" easyui-tabs" fit="true" border="false">
   
    <div title="欢迎使用" style="padding:20px; overflow:hidden;" id="home">
    <h1>欢迎使用</h1>

</div>
    </div>
    </div>

    	<div id="mm" class="easyui-menu" style="width:150px;">
		<div id="mm-tabclose">关闭</div>
		<div id="mm-tabcloseall">全部关闭</div>
		<div id="mm-tabcloseother">除此之外全部关闭</div>
		<div class="menu-sep"></div>
		<div id="mm-tabcloseright">当前页右侧全部关闭</div>
		<div id="mm-tabcloseleft">当前页左侧全部关闭</div>
		<div class="menu-sep"></div>
		<div id="mm-exit">退出</div>
	</div>

</body>
</html>
